﻿#pragma once
#include <qwebengineview.h>
#include <qwebenginepage.h>
#include <qurl.h>
#include <qwidget.h>

class smallerWeb :
    public QWebEngineView
{
    Q_OBJECT
public:
    smallerWeb(QWidget *parent=0);
protected:
    //鼠标左键点击触发    
    QWebEngineView* createWindow(QWebEnginePage::WebWindowType type) override;

private slots:
    void onUrlChanged(QUrl url);

private:
    QWebEngineView* viewList;
};

